package com.fancy.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fancy.user.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    int insertUser(User user);

    List<User> selectByUsernameOrEmail(String usernameOrEmail);

}